package me.zhao.factory;

public class TestFactory {
	public static void main(String[] args) {
		LeftHair hf = (LeftHair) HairFactory.getHair("left");
		hf.draw();
		
		RightHair rh = (RightHair) HairFactory.getHairByClass("me.zhao.factory.RightHair");
		rh.draw();
		
		MiddleHair middle = (MiddleHair) HairFactory.getHairByClassFromProps("middle");
		middle.draw();
		
		
	}
}
